/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ourMessage;

/**
 *
 * @author olga
 * @author adrian
 */
public class Hello extends Message {

    private static final long serialVersionUID = 33L;
    private boolean isAck;

    public Hello(String login, boolean isAck) {
        super(login);
        this.isAck = isAck;
    }

    @Override
    public String toString() {
        return "Hello from " + login + ", isAck=" + isAck;
    }

    public boolean isAck() {
        return isAck;
    }

    public void setIsAck(boolean isAck) {
        this.isAck = isAck;
    }

}
